package at.com.vn.chess.entity;

import at.com.vn.chess.util.Const;

public class PlayersInfo {
	
	private String rId;
	private Integer tId;
	private String player1Name;
	private String player2Name;
	private Integer whosWon;
	private Integer isOwnerAct;
	
	public PlayersInfo() {
		rId = "";
		tId = 0;
		player1Name = "";
		player2Name = "";
		whosWon = Const.UNDEFINE_VALUE;
		isOwnerAct = Const.UNDEFINE_VALUE;
	}
	
	public PlayersInfo( String roomId, Integer tableId, String player1Name,
			String player2Name, int isTablesOwner ) {
		super();
		this.rId = roomId;
		this.tId = tableId;
		this.player1Name = player1Name;
		this.player2Name = player2Name;
		whosWon = Const.UNDEFINE_VALUE;
		isOwnerAct = isTablesOwner;
	}

	public String getRId() {
		return rId;
	}
	public void setRId( String roomId ) {
		this.rId = roomId;
	}
	public Integer getTId() {
		return tId;
	}
	public void setTId( Integer tableId ) {
		this.tId = tableId;
	}
	public String getPlayer1Name() {
		return player1Name;
	}
	public void setPlayer1Name( String player1Name ) {
		this.player1Name = player1Name;
	}
	public String getPlayer2Name() {
		return player2Name;
	}
	public void setPlayer2Name( String player2Name ) {
		this.player2Name = player2Name;
	}

	public Integer getWhosWon() {
		return whosWon;
	}

	public void setWhosWon( Integer whosWon ) {
		this.whosWon = whosWon;
	}

	public Integer getIsOwnerAct() {
		return isOwnerAct;
	}

	public void setIsOwnerAct( Integer isOwnerAct ) {
		this.isOwnerAct = isOwnerAct;
	}
}
